/**
 * Created by pkd on 2017/5/24.
 */

var taoClient = require('./');
var TaoApi = taoClient.ApiClient;
var globalVar = {};

globalVar.teamId = 'bliu';
globalVar.toolId = 'bliuke';
globalVar.teamToolId = 'bliu_bliuke';
globalVar.teamName = '奔流客';
globalVar.toolName = '奔流淘客助手';

globalVar.gaoApi = new TaoApi({
    'appkey': '23535521',
    'appsecret': '1e109fc3f42d55b758de981d94b1cc46',
    'REST_URL': 'http://gw.api.taobao.com/router/rest'
});

globalVar.downApi = new TaoApi({
    'appkey': '24283958',
    'appsecret': 'd1820bc6ee825d7fcb49caf1c6b37b35',
    'REST_URL': 'http://gw.api.taobao.com/router/rest'
});

globalVar.upApi = new TaoApi({
    'appkey': '23855915',
    'appsecret': '4247ec01ab526afeeb357ab74ef135ec',
    'REST_URL': 'http://gw.api.taobao.com/router/rest'
});

var otherApiKS = [
    // inobaa，不包含上行下行，15个
    {appkey:'24283958',appsecret:'d1820bc6ee825d7fcb49caf1c6b37b35'},
    {appkey:'24283578',appsecret:'a460bd91fd51e48689d02c28827ee1c6'},
    {appkey:'24283772',appsecret:'d73488fec16d77125b870e943e67325d'},
    {appkey:'24283776',appsecret:'db0d93be26b1e617630bb691b29da585'},
    {appkey:'24284298',appsecret:'4c2175c4678d67cd70eb9e8b52a02d14'},
    {appkey:'24285008',appsecret:'5f24bbefd03a70eb4d804d005aa1b5a0'},
    {appkey:'24284821',appsecret:'1813ccf65b2b06fa254f7ef3fe77608d'},
    {appkey:'24285009',appsecret:'64ba0ea87c668871e451272804521131'},
    {appkey:'24285222',appsecret:'7b922bbb49753e6a57f38456f3846f92'},
    {appkey:'24285048',appsecret:'d7f8a61cf1c5454d4c7f5724f15743c0'},
    {appkey:'24284496',appsecret:'f00a2eacbd2efb86025d0d93c6a34a8c'},
    {appkey:'24285051',appsecret:'e73f1b228e0911c0f9b4750952270695'},
    {appkey:'24284739',appsecret:'40a69b0efc36d3858999d5a27356d46b'},
    {appkey:'24285803',appsecret:'c0d5fdbcab48eddd6956e16e452cea68'},
    {appkey:'24285293',appsecret:'54b8a69b326f870d4f691c74a7e505d6'},
    //云至科技， 21个
    {appkey:'24284589',appsecret:'3cc50b437521a478cf00c1815dbca207'},
    {appkey:'24285166',appsecret:'eb3d69bd92be45b1f24c6379b232f92e'},
    {appkey:'24284598',appsecret:'25ea45bbe4ddcc9d3817dacf5deefbf6'},
    {appkey:'24285349',appsecret:'2172ea7019e27786ffa9f9abc2b21320'},
    {appkey:'24285350',appsecret:'02a44d0c369853d467edfcec19b41ea3'},
    {appkey:'24286204',appsecret:'4a3ad4d7e485f94c6744194be9ed9cdd'},
    {appkey:'24286205',appsecret:'5dbfe7c1f5a677e4bf8d8e14cc0b8af7'},
    {appkey:'24286043',appsecret:'2b651cb000e4a64200ad9a149910a2a8'},
    {appkey:'24285533',appsecret:'4aae87865058d498f2a819fd6c72c4c1'},
    {appkey:'24284976',appsecret:'005071d92f054e445f29a90e4372fba4'},
    {appkey:'24286206',appsecret:'de198b256b6bc817e4c2f14301af03e7'},
    {appkey:'24285351',appsecret:'c8a06055ac1635d7556950da9e4627ad'},
    {appkey:'24284599',appsecret:'8ba6883a692ccfef0213a80c4be7f467'},
    {appkey:'24284977',appsecret:'4d60a7583a95774ace5964844400769f'},
    {appkey:'24286401',appsecret:'8dbf9715f3e02080e92c8b745219bc46'},
    {appkey:'24285846',appsecret:'ef0ad682d3e25c329d8fedc8e029e87e'},
    {appkey:'24285352',appsecret:'a4d296f87779a2ff86ab296c2772704a'},
    {appkey:'24285353',appsecret:'3ec7407dec0ac85382b07eb6c05ebc75'},
    {appkey:'24285847',appsecret:'453567f8f9f0580ad0f63a998fc52e00'},
    {appkey:'24285174',appsecret:'dfe1fec915cf4aac6a21f5608992e360'},
    {appkey:'24285722',appsecret:'3d51c61f5f5db50ad2eef068578846d2'},
    //昨天的明天09，14个
    {appkey:'23902109',appsecret:'4c613a99a567e2729721e7bf070e16ef'},
    {appkey:'24454383',appsecret:'a9f60bdbf47f35f21dd9cadbae61b3aa'},
    {appkey:'24456062',appsecret:'95279363939e6de52a42dd8e1bc0a194'},
    {appkey:'24455471',appsecret:'001583e5922dac8499431c45d2ca12e4'},
    {appkey:'24455846',appsecret:'d08e41556d77585d8cb71e3860a3a979'},
    {appkey:'24455847',appsecret:'0b3d1fa3dddbf1ab11fbfd4fe0dc3aa9'},
    {appkey:'24455848',appsecret:'f1e8fd6bfe5da40d5cfc8073dc88a110'},
    {appkey:'24454755',appsecret:'fcb97dc9b70d4f905989acd25eaefa76'},
    {appkey:'24454386',appsecret:'26c990077f2168b5de1c30c19e48fdd6'},
    {appkey:'24454387',appsecret:'f63cc5f71ca9ce22998f58e7be4b64fe'},
    {appkey:'24456409',appsecret:'b0d5d0156e8ebf31631127e330c9a8e6'},
    {appkey:'24456215',appsecret:'4bd7a7947556db9e9135adb7ada9f307'},
    {appkey:'24455474',appsecret:'06f518956338e09c4778088e3366c4f9'},
    {appkey:'24455476',appsecret:'53c0c31d8a548eb55452200a7c4fc010'},
    {appkey:'24454757',appsecret:'115521af983e10f98fe34027d8f4c2f9'},
];

globalVar.taoTokenApis = [];
globalVar.useOtherApi = true;
otherApiKS.forEach(function (obj) {
    var oneApi = new TaoApi({
        'appkey': obj.appkey,
        'appsecret': obj.appsecret,
        'REST_URL': 'http://gw.api.taobao.com/router/rest'});
    globalVar.taoTokenApis.push(oneApi);
});

module.exports = globalVar;